import request from '@/api/request.js';


// 获取token
function getLogin(data) {
  return request({
    // url: 'http://192.168.2.117:92/index.php/index/weixin/code_getuserinfo',
    url: '/weixin/code_getuserinfo',
    method: 'post',
    data
  })
}



// 获取用户信息
function getUser() {
  return request({
    url: '/agent/getUser',
    method: 'post',
  })
}

// 获取等级列表 /agent/getLevelList
function  getLeave() {
  return request({
    url: '/agent/getLevelList',
    method: 'post',
  })
}

// 分享接口 /base/get_wx_jssdk

function getWxJssdk(data) {
  return request({
    url: '/weixin/get_wx_jssdk',
    method: 'post',
    data
  })
}


export {
  getLogin,
  getUser,
  getLeave,
  getWxJssdk
}